<div id="secondary-wrapper">
		<div id="secondary-content">
	<!-- secondary content left - top box -->
<?php if(isset($bottombox_narrow_1[0])){ ?>	
	<div class="bottomBox" >
		
		<h3 class="widgettitle borderbottom_title">
			<?php if(isset($bottombox_narrow_1)){
				echo '<a href="'.$this->webroot.'news/category/'.$bottombox_narrow_1[0]['Category']['id'].'">'.$bottombox_narrow_1['0']['Category']['name'].'</a>';
			}
			else{ echo 'Chuyên mục';}
			?>
		</h3>	
		<?php $get_left_cat = $bottombox_narrow_1[0];?>
		<div class="bottombox_wide left">
			<div class="featuredpost lastpost">
				<img src="<?php echo $this->webroot;?>timthumb.php?src=<?php echo $get_left_cat['News']['image'];?>&amp;q=90&amp;w=298&amp;h=221&amp;zc=1" class="alignnone margin_bot" alt="" />
				<h2 class="posttitle"><a href="<?php echo $this->webroot.'news/show/'.$get_left_cat['News']['id'];?>" title="<?php echo $get_left_cat['News']['name'];?>" rel="bookmark"><?php echo $get_left_cat['News']['name'];?></a></h2>
				<p>
				<span class="author">
				<a href="<?php echo $this->webroot.'news/auth/'.$get_left_cat['News']['user_id'];?>" title="Posts by <?php echo $get_left_cat['User']['name'];?>" rel="author"><?php echo $get_left_cat['User']['name'];?></a></span> 							
							<span class="date"><?php echo date("h : i a",strtotime($get_left_cat['News']['created']));?> | </span>								
							<?php echo substr($get_left_cat['News']['description'],0,200);?>&hellip;
				</p>

				<div class="clear"></div>

				<span class="postmeta"><?php echo date("F j, Y",strtotime($get_left_cat['News']['created']));?>  / 
						<a href="<?php echo $this->webroot.'news/show/'.$get_left_cat['News']['id'];?>/#respond" title="Comment on <?php echo $get_left_cat['News']['name'];?>">
					<?php if(isset($get_left_cat['Comment'])){ echo count($get_left_cat['Comment']);}else{ echo 'No';}?>&nbsp;Comment</a> /
						<a href="<?php echo $this->webroot.'news/show/'.$get_left_cat['News']['id'];?>" title="Permalink to <?php echo $get_left_cat['News']['name'];?>" rel="bookmark">Read More</a></span>
			</div><!-- /featuredpost -->								
		</div><!-- /bottombox_wide -->
		<?php 
		$count_cat = count($bottombox_narrow_1);
		if($count_cat > 1){?>			
		<div class="bottombox_narrow right">
		<?php 
		$i = 0;
		if($count_cat > 3)
			$count_cat = 3;
		foreach($bottombox_narrow_1 as $set_bottombox_narrow_1){	
			if($i > 0 && $i<= $count_cat){
		?>
			<div class="featuredpost <?php if($i== ($count_cat)){ echo ' lastpost';}?>">		
				<h2 class="posttitle"><a href="<?php echo $this->webroot.'news/show/'.$set_bottombox_narrow_1['News']['id'];?>" title="<?php echo $set_bottombox_narrow_1['News']['name'];?>" rel="bookmark"><?php echo $set_bottombox_narrow_1['News']['name'];?></a></h2>
				<img src="<?php echo $this->webroot;?>timthumb.php?src=<?php echo $set_bottombox_narrow_1['News']['image'];?>&amp;q=90&amp;w=55&amp;h=55&amp;zc=1" class="alignright" alt="" />
				<p>
					<span class="author"><a href="<?php echo $this->webroot.'news/auth/'.$set_bottombox_narrow_1['News']['user_id'];?>" title="Posts by <?php echo $set_bottombox_narrow_1['User']['name'];?>" rel="author"><?php echo $set_bottombox_narrow_1['User']['name'];?></a></span> 							
					<span class="date"><?php echo date("h : i a",strtotime($set_bottombox_narrow_1['News']['created']));?> | </span>								
					<?php echo substr($set_bottombox_narrow_1['News']['description'],0,130);?>&hellip;
				</p>
				<div class="clear"></div>
				<span class="postmeta"><?php echo date("F j, Y",strtotime($set_bottombox_narrow_1['News']['created']));?>  / 
				<a href="<?php echo $this->webroot.'news/show/'.$set_bottombox_narrow_1['News']['id'];?>/#respond" title="Comment on <?php echo $set_bottombox_narrow_1['News']['name'];?>">
					<?php if(isset($set_bottombox_narrow_1['Comment'])){ echo count($set_bottombox_narrow_1['Comment']);}else{ echo 'No';}?>&nbsp;Comment</a> /
				<a href="<?php echo $this->webroot.'news/show/'.$set_bottombox_narrow_1['News']['id'];?>" title="Permalink to <?php echo $set_bottombox_narrow_1['News']['name'];?>" rel="bookmark">Read More</a></span>	
			</div><!-- /featuredpost -->
			<?php  }$i++;}?>
		</div> <?php } ?>
	</div><!-- /bottomBox -->
 <?php }?>
 <?php //echo $this->element('secondary_content_left');?>
</div><!-- /secondary-content -->	
<?php if(isset($home_sidebar2[0])){ ?>		
<div id="home_sidebar2">
			<div class="home_sidebarPosts">
			<?php 
			if(isset($home_sidebar2)){
				echo '<a href="'.$this->webroot.'news/category/'.$home_sidebar2[0]['Category']['id'].'">'.$home_sidebar2['0']['Category']['name'].'</a>';
			}
			else{ 
				echo 'Chuyên mục';}?>	
			<ul>
			<?php 
				$i=1;
			foreach($home_sidebar2 as $set_home_sidebar2){
				if($i<= 6){
			?>
				<li>
				<div class="featuredpost <?php if($i ==1){ echo ' firstpost'; } if($i==6){ echo ' lastpost';}?>">
				<img src="<?php echo $this->webroot;?>timthumb.php?src=<?php echo $set_home_sidebar2['News']['image'];?>&amp;q=90&amp;w=78&amp;h=83&amp;zc=1" class="alignleft" alt="" />					
				<h2 class="posttitle"><a href="<?php echo $this->webroot.'news/show/'.$set_home_sidebar2['News']['id'];?>" title="<?php echo $set_home_sidebar2['News']['name'];?>" rel="bookmark"><?php echo $set_home_sidebar2['News']['name'];?></a></h2>

				<p>
				<span class="author"><a href="<?php echo $this->webroot.'news/auth/'.$set_home_sidebar2['News']['user_id'];?>" title="Posts by <?php echo $set_home_sidebar2['User']['name'];?>" rel="author"><?php echo $set_home_sidebar2['User']['name'];?></a> |</span> 							
				<span class="date"><?php echo date("h : i a",strtotime($set_bottombox_narrow_2['News']['created']));?></span><br />
				<?php echo substr($set_home_sidebar2['News']['description'],0,60);?>&hellip;					</p>

				</div>
				</li>
				<?php } $i++; } ?>
			</ul>
		</div><!-- /home_sidebarPosts -->
	
	<div class="home_sidebar_ads">
		<img src="img/03.gif" alt="" />	
	</div><!-- /home_sidebar_ads -->
	
		
</div><!-- enf od home_sidebar -->
<?php } ?>
</div><!-- end of secondary-wrapper -->
